from PIL import Image, ImageFilter

file = "man1.jpg"
img = Image.open(file)

# 平滑
img.filter(ImageFilter.SMOOTH).show()
# 锐化
img.filter(ImageFilter.SHARPEN).show()

# 外形,轮廓 滤镜
img.filter(ImageFilter.CONTOUR).show()
# 浮雕
img.filter(ImageFilter.EMBOSS).show()
# 边缘处理
img.filter(ImageFilter.FIND_EDGES).show()

# 边缘增强
img.filter(ImageFilter.EDGE_ENHANCE).show()
# 细节
img.filter(ImageFilter.DETAIL).show()
# 模糊
img.filter(ImageFilter.BLUR).show()